#-*-encoding=utf-8-*-
title=u"""个人基本信息"""
description=u"""入职申请所需要填写的表单。"""
displayed_columns=[]
facetag = u"""姓名，年龄，学历"""

fields=(
    TextLineField(
        title=u'姓名',
        write_condition=u'',
        size=20,
        default_value_exp=u'""',
        name=u'name'
),
    DateField(
        minutestep=5,
        title=u'出生日期',
        showtime=False,
        write_condition=u'',
        default_value_exp=u'datetime.datetime.today() ',
        name=u'birthDate'
),
    ComputedField(
        description='',
        title=u'年龄',
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u"sheet is None and '这里不需要填写' or int( ( '%s'%datetime.datetime.today() ).split('-')[0] ) - int( ( '%s'%sheet['birthDate'] ).split('-')[0] )",
        name=u'age'
),
    TextLineField(
        title=u'民族',
        write_condition=u'',
        size=20,
        default_value_exp=u'""',
        name=u'nation'
),
    SingleSelectField(
        title=u'政治背景',
        vocabulary_exp=u"['党员','团员','群众']",
        limit=4,
        write_condition=u'',
        default_value_exp=u"'群众'",
        name=u'politicalBackground'
),
    SingleSelectField(
        description='',
        title=u'学历',
        validation_exp=u'',
        vocabulary_exp=u"['中学','中专','大专','本科','研究生','博士']",
        limit=4,
        write_condition=u'',
        default_value_exp=u'""',
        name=u'education'
),
    TextLineField(
        title=u'电话',
        write_condition=u'',
        size=20,
        default_value_exp=u'""',
        name=u'phone'
),
    TextLineField(
        title=u'电子邮件',
        write_condition=u'',
        size=20,
        default_value_exp=u'""',
        name=u'eMail'
),
    TextLineField(
        description='',
        title=u'住址',
        validation_exp=u'',
        write_condition=u'',
        size=20,
        default_value_exp=u'""',
        name=u'addrss'
),)

fields_validation_script=ur""""""
